//
//  LaunchingViewController.m
//  高仿暴走斗图
//
//  Created by key on 16/3/18.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "LaunchingViewController.h"

@interface LaunchingViewController()

@property (nonatomic, strong) UIImageView *imageView;
@end
@implementation LaunchingViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    NSString *image = @"";
    kIPhoneDeviceType iPhoneType = (kIPhoneDeviceType)IPHONE_HEIGHT;
    
    switch (iPhoneType) {
        case kIPhoneDeviceType4S: {
            
            image = CUSTOM_LAUNCHING_IMG(@"_");
        }
            break;
         
        case kIPhoneDeviceType5S: {
         
            image = CUSTOM_LAUNCHING_IMG(@"_568h@2x");;
        }
            break;
            
        case kIPhoneDeviceType6S: {
            
            image = CUSTOM_LAUNCHING_IMG(@"_667h@2x");;
        }
            break;
            
        case kIPhoneDeviceType6SP: {
            
            image = CUSTOM_LAUNCHING_IMG(@"_736h@3x");;
        }
            break;
            
            
        default:
            break;
    }
    self.imageView = [NSObject createImgWithImage:CREATE_IMG(image)
                                           hImage:CREATE_IMG(image)
                                    clipsToBounds:YES
                                          vcModel:UIViewContentModeScaleToFill];
    self.imageView.frame = self.view.bounds;
    [self.view addSubview:self.imageView];
}


@end
